// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
  env: 'everyday-4gkd6una188bf952'
})
const db = cloud.database()

// 云函数入口函数
exports.main = async (event, context) => {
  const words_of_love_result = await db.collection('words_of_love').where({}).get()

  return words_of_love_result.data
}